<include file="public@header" />
</head>
<style>
    tr td input,tr td select{ max-width:80px;width:auto;}
    .content_nav .check_info{flex:1; display:flex;flex-direction: column;align-items: center;justify-content: center;}
</style>
<body>
<php>$vo['id']='';</php>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Remind/index')}">{:lang('待办提醒')}</a></li>
        <li class="active"><a href="{:url('Remind/check')}">{:lang('业务查询')}</a></li>
    </ul>
    <div>
        <form  class="well form-search" action="{:url('Remind/index')}" method="post">
            <label>{:lang('客户名称')}:
                <input type="text" class="form-control" id="buyer_name" placeholder="请输入姓名" value="{:input('request.buyer_name')}" >
            </label>
            <label>{:lang('联系电话')}:
                <input type="text" class="form-control" id="phone" placeholder="请输入联系电话" value="{:input('request.phone')}" >
            </label>
            <label>{:lang('受理时间')}:
                <input type="text" class="form-control js-bootstrap-datetime" name="start_time" id="startData" value="{:input('request.start_time/s','')}" placeholder="请输入开始时间">
                ~
                <input type="text" class="form-control js-bootstrap-datetime" name="end_time" id="endData" value="{:input('request.start_time/s','')}" placeholder="请输入结束时间">
            </label>
            <a  class="btn btn-primary" id="dj_sosuo"  >查询</a>
        </form>
    </div>
    <form class="form-horizontal js-ajax-form" action="{:url('store/add_post')}" method="post" enctype="multipart/form-data">
        <!---tab页-->
        <ul class="nav_tabs " style="margin:0">
            <li class="active"  data-index="dj_w"><a href="javascript:">定金查询</a></li>
            <li data-index="dj_wk"><a href="javascript:">完款查询</a></li>
            <li data-index="dj_cq"><a href="javascript:">超期查询</a></li>
            <li data-index="dj_tk"><a href="javascript:">退定查询</a></li>
        </ul>
        <div class="control-group1-p nav_content" style="padding-top:0; min-height:300px; margin:0">
            <div class="content_nav" style="overflow:hidden; overflow-x:auto; width:100%;">
                <table class="table table-hover table-bordered"  id="table_dj_w">
                    <thead>
                    <tr>
                        <th>序号</th>
                        <th>定金到期时间</th>
                        <th>客户名称</th>
                        <th>联系方式</th>
                        <th>证件类型</th>
                        <th>身份证号</th>
                        <th>墓位编号</th>
                        <th>具体位置</th>
                        <th>销售价格</th>
                        <th>已交定金</th>
                        <th>缴费日期</th>
                        <th>经办人</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>
            <div class="content_nav feature">
                <table class="table table-hover table-bordered" id="table_dj_wk"></table>
            </div>
            <div class="content_nav feature">
                <table class="table table-hover table-bordered" id="table_dj_cq"></table>
            </div>
            <div class="content_nav feature">
                <table class="table table-hover table-bordered" id="table_dj_tk"></table>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>
<script type="text/javascript" src="__STATIC__/js/init_base.js?v={:time()}"></script>
<script>
    //切换显示
    var jdtxurl = "{:url('Remind/deposit')}";
    $(document).on('click','.nav_tabs li',function(){
        $(this).addClass('active').siblings().removeClass('active');
        var index = $(".nav_tabs li").index(this);k = $(this).data('index'),
            real_name=$('#real_name').val(), real_phone=$('#real_phone').val(),
            startTime=$('#startData').val(),　　//获取开始时间戳
           endTime=$('#endData').val(),　　　　 //获取结束时间戳
        console.log(k)
        if (k=='dj_w'){
            $("#table_dj_w").bootstrapTable('refresh', {url:jdtxurl +"?ajax=1&t=1",
                query: {real_phone:real_phone,real_name:real_name,start_time:startTime,end_time:endTime}});
        } else if (k=='dj_wk'){
            RCABase.init_pay.dingjin_complete('dj_wk',"{:url('Remind/deposit')}?ajax=1&t=2");
            $("#table_dj_wk").bootstrapTable('refresh', {url:jdtxurl+"?ajax=1&t=2",
                query: {real_phone:real_phone,real_name:real_name,start_time:startTime,end_time:endTime}});
        } else if (k=='dj_cq'){
            RCABase.init_pay.dingjin_complete('dj_cq',"{:url('Remind/deposit')}?ajax=1&t=3");
            $("#table_dj_cq").bootstrapTable('refresh', {url:jdtxurl+"?ajax=1&t=3",
                query: {real_phone:real_phone,real_name:real_name,start_time:startTime,end_time:endTime}});
        } else if (k=='dj_tk'){
            RCABase.init_pay.dingjin_refund(jdtxurl+"?ajax=1&t=4");
            $("#table_dj_tk").bootstrapTable('refresh', {url:jdtxurl+"?ajax=1&t=4",
                query: {real_phone:real_phone,real_name:real_name,start_time:startTime,end_time:endTime}});
        }
        billtype = index;
        $('.content_nav').eq(index).removeClass("feature").siblings().addClass("feature");
    });
    $(function () {
        RCABase.init_pay.dingjinGetList('dj_w',"{:url('Remind/deposit')}?ajax=1&t=1")
    });

</script>
</body>
</html>